package com.xnyzc.lhy.finance.service.fegin.oss;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.finance.service.fegin.oss.follback.FeginOssFallback;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "${feign.applicationName.resource}", fallback = FeginOssFallback.class)
public interface FeginOssService {

    /**
     * 获取文件
     * @param fileId
     * @return
     */
    @GetMapping(value = "/oa/cos/getFileUrl")
    public Rv getFileUrl(@RequestParam("fileId") Long fileId);

}
